package com.example.rabbitdemo.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.redis.core.index.Indexed;

/**
 * redis 数据实体
 */
@RedisHash("topic")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Demo {
    @Id  //主键
    private String id;
    @Indexed
    private String topic;
    @Indexed
    private String context;
    private String queue;
}
